import request from '@/utils/request'

/**
 * @description: 获取广告设定的清单
 * @param {*} params
 * @return {*}
 */
export function advertisementList(params) {
  return request({
    url: '/admin/advertisement/list',
    method: 'get',
    params
  })
}

/**
 * @description: 新增广告
 * @param {*} data
 * @return {*}
 */
export function advertisementAdd(data) {
  return request({
    url: '/admin/advertisement/add',
    method: 'post',
    data
  })
}

/**
 * @description: 更新广告设定
 * @param {*} data
 * @return {*}
 */
export function advertisementUpdate(data) {
  return request({
    url: '/admin/advertisement/update',
    method: 'post',
    data
  })
}

/**
 * @description: 删除广告设定
 * @param {*} data
 * @return {*}
 */
export function advertisementDelete(data) {
  return request({
    url: '/admin/advertisement/delete',
    method: 'post',
    data
  })
}
